<div class="content-item-wrap content-item-bg-wrap form-content-wrap trial-form-content-wrap">
    <div class="container">
        <div class="text-c content-title-wrap">
            <div class="title">联系我们，立即咨询</div>
            <div class="title-line"></div>
            <div class="subtitle">招商热线：{dede:global.cfg_tel_a/}</div>
        </div>
        <div class="content-con-wrap">
            <form action="" class="form-wrap contact-form-wrap">
                <ul class="clearfix w60 center list-wrap form-list-wrap">
                    <li class="flex rcb list-item form-item form-item-cur">
                        <div class="item-left item-con">
                            <input type="text" name="shop_name" id="seo-shop_name" class="form-item-input" placeholder="您的店铺名称" />
                        </div>
                        <div class="item-left item-con">
                            <input type="text" name="username" id="username" class="form-item-input" placeholder="您的姓名" />
                        </div>
                        <div class="item-right item-con">
                            <input type="text" name="mobile" id="mobile" class="form-item-input" placeholder="您的联系方式" />
                        </div>
                    </li>
                </ul>
                <div class="btn-wrap submit-btn-wrap">
                    <div class="flex ccc cur-p btn-item submit-btn-item" onclick="submitInfo();">立即提交</div>
                    <div class="text-c btn-tips f-fff">
                        <div class="tips-text">如有更多需求内容，可发送资料至大雁专属联系邮箱：chonglou@3todo.com</div>
                        <div class="tips-text">工作时间：8:30-18:00（工作日）</div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script>
    // 提交申请
    function submitInfo() {
        var formWrap = $('.contact-form-wrap');

        var _shop_name = $('#seo-shop_name'),
            _shop_nameVal = _shop_name.val();

        var _username = $('#username'),
            _usernameVal = _username.val();

        var _mobile = $('#mobile'),
            _mobileVal = _mobile.val();

        var _dateStr = new Date(),
            _currentDate = _dateStr.Format("yyyy-MM-dd hh:mm:ss");


        if (_usernameVal == '') {
            layer.msg('请输入您的姓名');
            _username.focus();
            return false;
        }

        if (_mobileVal == '') {
            layer.msg('请输入您的手机号');
            _mobile.focus();
            return false;
        } else if (!/^1[0-9]{10}/.test(_mobileVal)) {
            layer.msg('手机号格式不正确');
            _mobile.focus();
            return false;
        }


        var dataString =
            '&shop_name=' + _shop_nameVal + '（共享系统）' +
            '&username=' + _usernameVal +
            '&mobile=' + _mobileVal +
            '&create_time=' + _currentDate +
            '&ip=' + returnCitySN["cip"] +
            '&seo_engine=' + _seo_engine +
            '&action=post' +
            '&diyid=1&do=2' +
            '&dede_fields=shop_name,text;username,text;mobile,text;create_time,text;ip,text;seo_engine,text' +
            '&dede_fieldshash=2057ab00d5c69788a4782d60407bc7b5';

        $.ajax({
            type: "POST",
            url: "/plus/diy.php",
            data: dataString,
            success: function(data) {
                formWrap[0].reset();
                layer.msg('提交成功');
            }
        });
        return false;
        
    }
</script>